package com.jboost.hyk.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jboost.hyk.course.entity.Course;
import com.jboost.hyk.course.entity.CourseSnapshot;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 课程
 * @Author: cxn
 * @Date:   2022-11-03
 * @Version: V1.0
 */
public interface CourseSnapshotMapper extends BaseMapper<CourseSnapshot> {

    void subtractPointCount(@Param("courseIds") String[] courseIds);

    List<CourseSnapshot> listAllByIds(String[] courseIds);
}
